/*
 * Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved
 */
package com.baidu.sggc;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableConfigurationProperties
@ConfigurationPropertiesScan
@EnableAsync
@MapperScan({"com.baidu.sggc.mapper", "com.baidu.encrypt.mapper"})
@EnableAspectJAutoProxy
@SpringBootApplication(scanBasePackages = {"com.baidu.sggc", "com.baidu.encrypt"})
@Slf4j
@EnableScheduling
public class App {

    public static void main(String[] args)  {
        SpringApplication.run(App.class, args);
        log.info("\n\n" +
                "****************************************************\n" +
                "*    服务启动成功啦！(App Started Successfully)    *\n" +
                "****************************************************\n");

    }
}
